package com.tobby.siia.fundamentals;

import javax.xml.transform.Source;

import org.springframework.xml.transform.StringSource;

public class MealPreferenceRequestTransformer {

	public Source buildMealPreferenceUpdateRequest(MealPreference mealPreference) {
		return new StringSource(
				"<updateMealPreference>" + "<flightRef>" + mealPreference.getFlightReference() + "</flightRef>"
						+ "<mealPreference>" + mealPreference + "" + "</mealPreference>" + "</updateMealPreference>");
	}

}
